package com.qj.yantaishan.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.qj.yantaishan.common.annotation.Excel;
import com.qj.yantaishan.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 shanglala_admin
 * 
 * @author qihe
 * @date 2022-07-22
 */
public class Admin
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String account;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String pwd;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String realname;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String phone;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String email;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String qq;

    /** 区域管理员头像 */
    @Excel(name = "区域管理员头像")
    private String avatar;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long lastIp;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long lastTime;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long loginCount;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Integer status;

    /** 奖励总额 */
    @Excel(name = "奖励总额")
    private BigDecimal rewardTotal;

    /** 可用奖励金额 */
    @Excel(name = "可用奖励金额")
    private BigDecimal rewardBalance;

    /** 不可用奖励金额 */
    @Excel(name = "不可用奖励金额")
    private BigDecimal rewardUnbalance;

    /** 所属权限组id */
    @Excel(name = "所属权限组id")
    private Long groupId;

    /** 后台管理类别: 0超级管理员 1普通管理员 2区域管理 3代理商 */
    @Excel(name = "后台管理类别: 0超级管理员 1普通管理员 2区域管理 3代理商")
    private Integer type;

    /** 创建者uid */
    @Excel(name = "创建者uid")
    private Long creator;

    /** 省份 */
    @Excel(name = "省份")
    private String province;

    /** 市区 */
    @Excel(name = "市区")
    private String city;

    /** 区县 */
    @Excel(name = "区县")
    private String county;

    /** 区域等级：0非区域管理 1省级 2市级 3区县级 */
    @Excel(name = "区域等级：0非区域管理 1省级 2市级 3区县级")
    private Integer areaLevel;

    /** 代理商邀请码 */
    @Excel(name = "代理商邀请码")
    private String agentCode;

    /** 区域管理员微信id （用于消息通知） */
    @Excel(name = "区域管理员微信id ", readConverterExp = "用=于消息通知")
    private String openId;

    /** 关联区域管理员admin_id 只允许代理商关联 */
    @Excel(name = "关联区域管理员admin_id 只允许代理商关联")
    private Long areaAdmin;

    /** 代理商ID */
    @Excel(name = "代理商ID")
    private String agentId;

    /** 开店分销用户id */
    @Excel(name = "开店分销用户id")
    private Long openFxId;

    /** 群聊二维码 */
    @Excel(name = "群聊二维码")
    private String groupQrcode;

    /** 推广码 */
    @Excel(name = "推广码")
    private String generalizeQrcode;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setAccount(String account) 
    {
        this.account = account;
    }

    public String getAccount() 
    {
        return account;
    }
    public void setPwd(String pwd) 
    {
        this.pwd = pwd;
    }

    public String getPwd() 
    {
        return pwd;
    }
    public void setRealname(String realname) 
    {
        this.realname = realname;
    }

    public String getRealname() 
    {
        return realname;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }
    public void setQq(String qq) 
    {
        this.qq = qq;
    }

    public String getQq() 
    {
        return qq;
    }
    public void setAvatar(String avatar) 
    {
        this.avatar = avatar;
    }

    public String getAvatar() 
    {
        return avatar;
    }
    public void setLastIp(Long lastIp) 
    {
        this.lastIp = lastIp;
    }

    public Long getLastIp() 
    {
        return lastIp;
    }
    public void setLastTime(Long lastTime) 
    {
        this.lastTime = lastTime;
    }

    public Long getLastTime() 
    {
        return lastTime;
    }
    public void setLoginCount(Long loginCount) 
    {
        this.loginCount = loginCount;
    }

    public Long getLoginCount() 
    {
        return loginCount;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setRewardTotal(BigDecimal rewardTotal) 
    {
        this.rewardTotal = rewardTotal;
    }

    public BigDecimal getRewardTotal() 
    {
        return rewardTotal;
    }
    public void setRewardBalance(BigDecimal rewardBalance) 
    {
        this.rewardBalance = rewardBalance;
    }

    public BigDecimal getRewardBalance() 
    {
        return rewardBalance;
    }
    public void setRewardUnbalance(BigDecimal rewardUnbalance) 
    {
        this.rewardUnbalance = rewardUnbalance;
    }

    public BigDecimal getRewardUnbalance() 
    {
        return rewardUnbalance;
    }
    public void setGroupId(Long groupId) 
    {
        this.groupId = groupId;
    }

    public Long getGroupId() 
    {
        return groupId;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }
    public void setCreator(Long creator) 
    {
        this.creator = creator;
    }

    public Long getCreator() 
    {
        return creator;
    }
    public void setProvince(String province) 
    {
        this.province = province;
    }

    public String getProvince() 
    {
        return province;
    }
    public void setCity(String city) 
    {
        this.city = city;
    }

    public String getCity() 
    {
        return city;
    }
    public void setCounty(String county) 
    {
        this.county = county;
    }

    public String getCounty() 
    {
        return county;
    }
    public void setAreaLevel(Integer areaLevel) 
    {
        this.areaLevel = areaLevel;
    }

    public Integer getAreaLevel() 
    {
        return areaLevel;
    }
    public void setAgentCode(String agentCode) 
    {
        this.agentCode = agentCode;
    }

    public String getAgentCode() 
    {
        return agentCode;
    }
    public void setOpenId(String openId) 
    {
        this.openId = openId;
    }

    public String getOpenId() 
    {
        return openId;
    }
    public void setAreaAdmin(Long areaAdmin) 
    {
        this.areaAdmin = areaAdmin;
    }

    public Long getAreaAdmin() 
    {
        return areaAdmin;
    }
    public void setAgentId(String agentId) 
    {
        this.agentId = agentId;
    }

    public String getAgentId() 
    {
        return agentId;
    }
    public void setOpenFxId(Long openFxId) 
    {
        this.openFxId = openFxId;
    }

    public Long getOpenFxId() 
    {
        return openFxId;
    }
    public void setGroupQrcode(String groupQrcode) 
    {
        this.groupQrcode = groupQrcode;
    }

    public String getGroupQrcode() 
    {
        return groupQrcode;
    }
    public void setGeneralizeQrcode(String generalizeQrcode) 
    {
        this.generalizeQrcode = generalizeQrcode;
    }

    public String getGeneralizeQrcode() 
    {
        return generalizeQrcode;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("account", getAccount())
            .append("pwd", getPwd())
            .append("realname", getRealname())
            .append("phone", getPhone())
            .append("email", getEmail())
            .append("qq", getQq())
            .append("avatar", getAvatar())
            .append("lastIp", getLastIp())
            .append("lastTime", getLastTime())
            .append("loginCount", getLoginCount())
            .append("status", getStatus())
            .append("rewardTotal", getRewardTotal())
            .append("rewardBalance", getRewardBalance())
            .append("rewardUnbalance", getRewardUnbalance())
            .append("groupId", getGroupId())
            .append("type", getType())
            .append("creator", getCreator())
            .append("province", getProvince())
            .append("city", getCity())
            .append("county", getCounty())
            .append("areaLevel", getAreaLevel())
            .append("agentCode", getAgentCode())
            .append("openId", getOpenId())
            .append("areaAdmin", getAreaAdmin())
            .append("agentId", getAgentId())
            .append("openFxId", getOpenFxId())
            .append("groupQrcode", getGroupQrcode())
            .append("generalizeQrcode", getGeneralizeQrcode())

            .toString();
    }
}
